package com.grades.springboot.controller;


import com.grades.springboot.entity.Result;
import com.grades.springboot.service.impl.FindPsdServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/findPsd")
public class FindPsdController {

    @Autowired
    private FindPsdServiceImpl findPsdService;

    @PostMapping("/")
    public Result<?> findPsd(String email, String code, String newPsd, String rePassword, HttpServletRequest request){
//        System.out.println(code);
        return findPsdService.findPsd(email,code,newPsd,rePassword,request);
    }

}
